package com.guozcc.bootweb;


import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ImportResource;
import org.springframework.scheduling.annotation.EnableAsync;

@ServletComponentScan//使用servlet过滤器时需要
@SpringBootApplication
//@ImportResource("classpath:springconfig/**/*.xml")//指定SpringXml配置文件扫描路径
@EnableCaching  //开启SpringBoot缓存
public class BootwebApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext configurableApplicationContext = SpringApplication.run(BootwebApplication.class, args);
    }
}
